/**
 * Created by hongjiawei@uworks.cc on 2016/09/26.
 */

//页尾自适应
footAdapt();

// 验证用户是否登录并获取信息
//validateIsLogin();

// 对话窗初始化
dialogInit();

// 验证码操作初始化
//verifyCodeInit();

//页尾自适应
function footAdapt() {
    function adapt(){
        var windowH = $(window).height();
        var mainH = $('#page_main').outerHeight();
        var footH = $('.mod-footer').outerHeight();
        if(mainH) {
            if(windowH - mainH > footH) {
                $('.mod-footer').addClass('fixed');
            }else {
                $('.mod-footer').removeClass('fixed');
            }
        }
    }
    adapt();

    $(window).resize(function () {
        adapt();
    });
    $('#page_main').resize(function () {
        adapt();
    });
}



